use std::path::PathBuf;

use argh::FromArgs;

#[derive(FromArgs)]
#[argh(description = "aspect homeserver")]
pub struct Args {
    #[argh(option, short = 'd', description = "postgresql:// database url")]
    pub database_url: Option<String>,

    #[argh(option, short = 's', description = "sled database path")]
    pub sled_db_path: PathBuf,

    #[argh(
        option,
        short = 'r',
        description = "RPC port (default 12345)",
        default = "12345"
    )]
    pub rpc_port: u16,

    #[argh(
        option,
        short = 'p',
        description = "client conn port (default 23456)",
        default = "23456"
    )]
    pub net_port: u16,
}
